<div class="portlet">
    <div class="portlet-actions">
        <button class="btn blue btn-sm" ng-click="grid.add()"><i class="fa fa-plus"></i> 新增</button>
    </div>
    <form class="portlet-search-body" name="queryForm">
        <input type="text" class="form-control search-item" ng-model="shelterNo" placeholder="编号">
        <input type="text" class="form-control search-item" ng-model="originalNo" placeholder="原序号">
        <input type="text" class="form-control search-item" ng-model="areaNo" placeholder="区域号">
		<select class="form-control search-item search-item-expand" name="county" ng-model="county"
				ng-options="opt.value as opt.name for opt in options.county">
			<option value="" disabled selected hidden>-- 所属区域 --</option>
		</select>
        <input type="text" class="form-control search-item" ng-model="stopName" placeholder="站点名称">
        <div class="search-item">
            <button class="btn btn-icon-only default"><i class="fa fa-chevron-right"></i></button>
            <button class="btn btn-sm query" ng-click="grid.query();"><i class="fa fa-search"></i> 查询</button>
            <button class="btn btn-sm reset" ng-click="grid.reset();"><i class="fa fa-eraser"></i> 重置</button>
        </div>
    </form>
    <div class="portlet-body">
        <table ed-grid="grid"  class="table table-striped table-bordered table-advance table-hover"
               data-options="url: 'shelter/query.do', modelText: '候车亭列表', form: 'queryForm', modal: 'modal'">
            <thead>
            <tr>
                <th data-options="field: '_index'"></th>
                <th data-options="field: 'shelterNo'">编号</th>
                <th data-options="field: 'originalNo'">原序号</th>
                <th data-options="field: 'longitude'">经度</th>
                <th data-options="field: 'latitude'">纬度</th>
                <th data-options="field: 'areaNo'">区域号</th>
                <th data-options="field: 'county'">所属区域</th>
                <th data-options="field: 'stopName'">站点名称</th>
                <th data-options="field: 'deputyStopName'">副站名</th>
                <th data-options="field: 'direction'">行向</th>
                <th data-options="field: 'equipmentType'">候车亭设施</th>
                <th data-options="field: 'bigBoardNum'">大板数</th>
                <th data-options="field: 'bigBoardSize'">大牌尺寸</th>
                <th data-options="field: 'bigBoardSituation'">大牌状况</th>
                <th data-options="field: 'powerSupply'">接电情况</th>
                <th data-options="field: 'adSize'">画框尺寸</th>
                <th data-options="field: 'company'">所属</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>

<div ed-modal="modal" data-options="title: '候车亭编辑', static: true, width: 720, defaultButton:false,onHidden:'reset'">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
        	<div class="form-group">
				<label class="col-md-2 control-label">编号</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="shelterNo" ng-model="shelter.shelterNo" required>
            	</div>
				<label class="col-md-2 control-label">原序号</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="originalNo" ng-model="shelter.originalNo" required>
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">经度</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="longitude" ng-model="shelter.longitude" required>
            	</div>
				<label class="col-md-2 control-label">纬度</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="latitude" ng-model="shelter.latitude" required>
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">区域号</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="areaNo" ng-model="shelter.areaNo" required>
            	</div>
				<label class="col-md-2 control-label">所属区域</label>
				<div class="col-md-4">
					<select class="form-control" name="county" ng-model="shelter.county"
							ng-options="opt.value as opt.name for opt in options.county">
						<option value="" disabled selected hidden>-- 所属区域 --</option>
					</select>
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">站点名称</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="stopName" ng-model="shelter.stopName" required>
            	</div>
				<label class="col-md-2 control-label">副站名</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="deputyStopName" ng-model="shelter.deputyStopName">
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">行向</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="direction" ng-model="shelter.direction" required>
            	</div>
				<label class="col-md-2 control-label">候车亭设施</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="equipmentType" ng-model="shelter.equipmentType">
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">大板数</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="bigBoardNum" ng-model="shelter.bigBoardNum">
            	</div>
				<label class="col-md-2 control-label">大牌尺寸</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="bigBoardSize" ng-model="shelter.bigBoardSize">
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">大牌状况</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="bigBoardSituation" ng-model="shelter.bigBoardSituation">
            	</div>
				<label class="col-md-2 control-label">接电情况</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="powerSupply" ng-model="shelter.powerSupply">
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">画框尺寸</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="adSize" ng-model="shelter.adSize">
            	</div>
				<label class="col-md-2 control-label">所属</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="company" ng-model="shelter.company">
            	</div>
            </div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" class="btn blue" ng-click="grid.save();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>

<div ed-modal="stopPointsModal" data-options="title:'站点定位',icon:'fa-bus',static:true,width:'900px',defaultButton:false">
	<div id="stopPointsModalMapDiv" style="overflow: auto;height: 500px;width: 100%;">

	</div>
</div>


